package medios.exceptions;

import com.swsp.util.LogManager;

public class MyException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6936222043568157288L;

	public MyException() {
		super();
	}
	
	public MyException(String debugname) {
		super(debugname);
	}
	
	public void log() {
		LogManager.getInstance().writeLog(LogManager.ERROR, toString() );
	}
	
	public void log(String debug_name) {
		LogManager.getInstance().writeLog(LogManager.ERROR, debug_name + " [ " + toString() + " ]");
	}
}
